package com.ithema.mArrayList;

import java.util.Scanner;

public class Dome1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
       lo: while (true){
            System.out.println("请输入手机号码：");
            String s = sc.nextLine();
            if(s.length()==11){
                String substring = s.substring(0, 4);
                String substring1 = s.substring(7);
                System.out.println(substring+"****"+substring1);
                break lo;
            }else {
                System.out.println("你输入的手机号码有误，请核对！！！");
            }
        }


    }
}
